package com.devshephard.nio.chat.session;

import io.netty.channel.Channel;

import java.util.HashMap;

public class SessionFactory {

    public SessionFactory() {
        this.onliceUserMap = new HashMap();
        this.onliceChannelUserMap = new HashMap();
    }

    private HashMap<String, Channel> onliceUserMap;  //在线用户,通过用户名找到channel

    private HashMap<Channel, String> onliceChannelUserMap;  //在线用户,通过信道找到用户名


    public HashMap<Channel, String> getOnliceChannelUserMap() {
        return onliceChannelUserMap;
    }

    public void setOnliceChannelUserMap(HashMap<Channel, String> onliceChannelUserMap) {
        this.onliceChannelUserMap = onliceChannelUserMap;
    }

    public HashMap getOnliceUserMap() {
        return onliceUserMap;
    }

    public void setOnliceUserMap(HashMap onliceUserMap) {
        this.onliceUserMap = onliceUserMap;
    }
}
